/*
 * File:    BufferException.java
 * Created: 30-Oct-2007
 *
 * by Kenji Hollis <kenji@bitgatesoftware.com>
 * Released under the Creative Commons License version 2.5
 */

package com.bitgate.util.buffer;

/**
 * This exception is thrown when an exception happens that is {@link BufferInterface} related.
 * 
 * @author Kenji Hollis &lt;kenji@bitgatesoftware.com&gt;
 * @since 0.1
 */
public class BufferException extends Exception {
	
	/**
	 * Used for serialization.
	 */
	private static final long serialVersionUID = 8900696642170287203L;

	/**
	 * Throws a simple exception with a string error.
	 * 
	 * @param str <code>String</code> containing the error.
	 */
	public BufferException(String str) {
		super(str);
	}
	
	/**
	 * Throws a more complex error with the error and its root cause.
	 * 
	 * @param str <code>String</code> containing the error.
	 * @param e The <code>Exception</code> that caused the error.
	 */
	public BufferException(String str, Exception e) {
		super(str, e);
	}
	
}